from chernc.treediff.gumtree.actions.model.action import Action
from chernc.treediff.gumtree.tree.tree import TreeLike


class Delete(Action):
    def __init__(self, node: TreeLike):
        super().__init__(node)

    def get_name(self) -> str:
        return "delete-node"

    def __str__(self) -> str:
        return f"===\n{self.get_name()}\n---\n{self.node}\n==="
